﻿#region Usings
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
#endregion

namespace LP.Model
{
    /// <summary>
    ///     Represent a user of portal
    /// </summary>
    public class User : BaseEntity
    {
        #region Instance Properties
        public virtual ICollection<Role> Roles { get; set; }

        [MaxLength(100)]
        [Required]
        public string Email { get; set; }

        [MaxLength(30)]
        [Required]
        public string Password { get; set; }

        public Person Person { get; set; }
        #endregion
    }
}